//
//  BaseViewController.m
//  Qyer
//
//  Created by dlios on 15/10/16.
//  Copyright (c) 2015年 GF. All rights reserved.
//

#import "BaseViewController.h"

#import "BaseHeader.h"


@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = DAY_BACKGROUND;
    self.navigationController.navigationBar.barTintColor = NAVBAR_COLOR;

    
}

- (void)creatTableView
{

}

- (UILabel *)creatLabelWithRect:(CGRect)rect text:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor alignment:(BOOL)alignment
{
    UILabel *lable = [[UILabel alloc] initWithFrame:rect];
    lable.text = text;
    lable.font = font;
    lable.textColor = textColor;
    lable.textAlignment = alignment;
    return lable;
}

- (UIButton *)creatButtonWithRect:(CGRect)rect imageStr:(NSString *)imageStr click:(SEL)click
{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = rect;
    [button setImage:[UIImage imageNamed:imageStr] forState:UIControlStateNormal];
    [button addTarget:self action:click forControlEvents:UIControlEventTouchUpInside];
    return button;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
